/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * TestJPanel.java
 *
 * Created on 21 mai 2013, 16:51:41
 */

package Vue;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JButton;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.GroupLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.Label;
import javax.swing.JLabel;
import java.awt.Font;

/**
 *
 * @author yannick.henriet
 */
public class IHM_stationAC extends javax.swing.JPanel {
	
    /** Creates new form TestJPanel */
    public IHM_stationAC() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        
        JButton btnNewButton = new JButton("Inscription");
        btnNewButton.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent arg0) {
        		Control_IHM_user.getInstance().choixSelection("inscription"); // appel de la fonction de choix
        	}
        });
        
        JButton btnNewButton_1 = new JButton("Connexion");
        btnNewButton_1.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		Control_IHM_user.getInstance().choixSelection("connexion"); // appel de la fonction de choix
        	}
        });
        
        JButton btnNewButton_2 = new JButton("Rendre V\u00E9lo");
        btnNewButton_2.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent arg0) 
        	{
        		Control_IHM_user.getInstance().choixSelection("remiseVelo"); // appel de la fonction de choix
        	}
        });
        
        JLabel lblBienvenueSurNemovlo = new JLabel("Bienvenue sur Nemo-V\u00E9lo");
        lblBienvenueSurNemovlo.setFont(new Font("Tahoma", Font.PLAIN, 26));

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        layout.setHorizontalGroup(
        	layout.createParallelGroup(Alignment.LEADING)
        		.addGroup(layout.createSequentialGroup()
        			.addGroup(layout.createParallelGroup(Alignment.LEADING)
        				.addGroup(layout.createSequentialGroup()
        					.addGap(46)
        					.addComponent(btnNewButton, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE)
        					.addPreferredGap(ComponentPlacement.RELATED)
        					.addComponent(btnNewButton_2, GroupLayout.PREFERRED_SIZE, 112, GroupLayout.PREFERRED_SIZE)
        					.addPreferredGap(ComponentPlacement.RELATED)
        					.addComponent(btnNewButton_1, GroupLayout.PREFERRED_SIZE, 109, GroupLayout.PREFERRED_SIZE))
        				.addGroup(layout.createSequentialGroup()
        					.addGap(66)
        					.addComponent(lblBienvenueSurNemovlo)))
        			.addContainerGap(85, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
        	layout.createParallelGroup(Alignment.LEADING)
        		.addGroup(layout.createSequentialGroup()
        			.addGap(77)
        			.addComponent(lblBienvenueSurNemovlo)
        			.addGap(41)
        			.addGroup(layout.createParallelGroup(Alignment.BASELINE)
        				.addComponent(btnNewButton, GroupLayout.PREFERRED_SIZE, 39, GroupLayout.PREFERRED_SIZE)
        				.addComponent(btnNewButton_1, GroupLayout.PREFERRED_SIZE, 38, GroupLayout.PREFERRED_SIZE)
        				.addComponent(btnNewButton_2, GroupLayout.PREFERRED_SIZE, 38, GroupLayout.PREFERRED_SIZE))
        			.addContainerGap(129, Short.MAX_VALUE))
        );
        this.setLayout(layout);
    }// </editor-fold>//GEN-END:initComponents
}
